import request from '@/utils/request'

// 查询商户海报列表
export function listPoset(query) {
    return request({
        url: '/tenant/poset/list', method: 'get', params: query
    })
}

// 查询商户海报详细
export function getPoset(id) {
    return request({
        url: '/tenant/poset/' + id, method: 'get'
    })
}

// 新增商户海报
export function addPoset(data) {
    return request({
        url: '/tenant/poset', method: 'post', data: data
    })
}

// 修改商户海报
export function updatePoset(data) {
    return request({
        url: '/tenant/poset', method: 'put', data: data
    })
}

// 删除商户海报
export function delPoset(id) {
    return request({
        url: '/tenant/poset/' + id, method: 'delete'
    })
}
